package com.winsdom.mapper;

import com.winsdom.dto.contract.FeeCategoryDto;
import com.winsdom.entity.FeeCategory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 费项分类表 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2025-05-12
 */
public interface FeeCategoryMapper extends BaseMapper<FeeCategory> {

    @Select("select a.fee_name,b.fee_category_id from fee_category a inner join expenditure b on a.id=b.fee_category_id where b.status=1")
    List<FeeCategoryDto> selectListForIds();
}
